﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.BLL%>
<!--header end-->

<!--主体-->
<script type="text/javascript">
	function checkCheckBox(form,objtag)
	{
		if (typeof(objtag.checked) == "undefined")
		{
			objtag.checked = true;
		}
		for(var i = 0; i < form.elements.length; i++) 
		{
			var e = form.elements[i];
			if(e.name == "pmitemid") 
			{
				e.checked = objtag.checked;
			}
		}
		objtag.checked = !objtag.checked;
	}
</script>
<style>
.message td
{
  border-bottom:1px solid #D8DFEA;
  padding-top:5px;
  padding-bottom:5px;
}
.message span
{
	color:#999999;
}
.message a
{
	color:Green!important;
}
.message p
{
	margin-bottom:5px;
}





</style>
<div class="layout2-cols2">
<%template _memmenu%>

<div class="pannelcontent">

	<div class="pcontent">
	   <div  class="panneldetail">
		<%template _mempmenu%>
			<div class="pannelbody">
			
                <%if IsPost%>
                <%template _msgbox%>
                <%else%>

					<div class="message">

				  		<form id="pmform" name="pmform" method="post" action="">
						<table width="800px" border="0" cellspacing="0" cellpadding="0">
						<%csharp%>
						foreach(MessageInfo item in MsgList)
						{
						   
						<%/csharp%>
							<tbody>
							<tr>
							  <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.msgfromid;<%/csharp%>
							<td style="text-align:center; vertical-align:middle;width:100px;">
							
							<a href="{this.GetUrl(TempUrl)}"><img src="{UserBLL.Instance.GetUserInfo(item.msgfromid).Avatar}" width="45px" height="45px" /></a>				
							<br />
							<a href="{this.GetUrl(TempUrl)}">{item.msgfrom}</a>
							<%csharp%>TempUrl = item.PostDateTime.ToString("MM月dd日");<%/csharp%>  
						 	<div><span style="margin-left">&nbsp;{TempUrl}</span></div>
							</td>
						 	
							<td style="text-align:left; vertical-align:top;">
							{item.message}
							<p></p>
							</td>
							<td style="text-align:center; vertical-align:top;width:100px;">
                             <%csharp%>TempUrl = "/User/ShowPm.aspx?id="+item.Id+"&parentid="+item.ParentId;<%/csharp%>
							   <p><a href="{this.GetUrl(TempUrl)}">查看该消息</a></p>
							   <p><a href="{this.GetUrl(TempUrl)}">回复该消息</a></p> 
							</td>	
							</tr>
							
							</tbody>
						<%csharp%>
						}
						<%/csharp%>
						</table>
						</form>
					</div>
	                <div style="margin:10px">
                    <div class="pages">
                    {PagingString}
                    </div>
                    </div>
	
             	 <%/if%>
						
			  </div>
			 
	    </div>		 
	</div>

</div>

</div>
<!--主体-->

<%template _footer%>
